package com.web3.management.dto.request;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class TradeLogRequest {


    private Integer accountId;

    private Integer accountConfigId;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime tradeTime;

    @Size(max = 20, message = "交易方向长度不能超过20个字符")
    private String direction;

    private BigDecimal plannedAmount;

    private BigDecimal actualAmount;

    private BigDecimal slippage;

    @Size(max = 20, message = "交易状态长度不能超过20个字符")
    private String status;

    @Size(max = 128, message = "交易哈希长度不能超过128个字符")
    private String txHash;

    private String remark;
}
